[
											{
												fieldLabel		: "Denumimre",
												allowBlank		: false,
												blankText		: "Nu e completat",
												Text			: 'sdasd',
												width			: 300
											},
											{
												fieldLabel		: "Autor",
												allowBlank		: false,
												blankText		: "Nu e completat",
												text			: 'sdasd',
												width			: 300
											},
											
											new Ext.form.HtmlEditor({
												fieldLabel		: "Text stire",
											    width			: 500,
											    height			: 300
											}),
											new Ext.form.HtmlEditor({
												fieldLabel		: "Text stire",
											    width			: 500,
											    height			: 300
											}),
											
										]
										
										

										
Ext.Ajax.request({
					url: 'server/EntityItems.php?__id='+node.id,
					success: function(response) {
						entityId = node.id;
						r = response.responseText;
						//alert(r);
						var gridDefinition = eval(r);
						gridColumns = eval(gridDefinition[0]);
						myData = eval(gridDefinition[1]);
						
						var storeDef = eval(gridDefinition[2]);
						
						//alert(gridColumns);
						store = new Ext.data.SimpleStore({
							fields: storeDef
						});
						store.loadData(myData);
						
						grid = new Ext.grid.GridPanel({
							id: node.id,
							store: store,
							columns: gridColumns,
							trackMouseOver: true,
							
							selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
							emptyText: "Nu exista date introduse pentru aceasta entitate",
							/*
							[
								{id:'field1',header: "Company", width: 160, sortable: true, dataIndex: 'field1'},
								{header: "Price", width: 75, sortable: true, dataIndex: 'field2'},
								{header: "Change", width: 75, sortable: true, dataIndex: 'change'},
								{header: "% Change", width: 75, sortable: true, dataIndex: 'pctChange'},
								{header: "Last Updated", width: 85, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
							],
							*/
							stripeRows: true,
							/*
								bbar	: new Ext.PagingToolbar({
								store:store,
								displayInfo:true,
								pageSize:2,
							}),
							*/
							//autoExpandColumn: 'field1',
							//height:350,
							//width:'100%',
							title: node.text
						});
						grid.addListener('rowcontextmenu', renderMenu)
						grid.closable = true;
						AppTabPanel.add(grid);
						//tab.doLayout();
						AppTabPanel.setActiveTab(grid.id);
					}
				});	